package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.TradingPoolAccountCategoryEnum;
import com.sc.nft.enums.TradingPoolAccountTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户账户变化 log
 *
 * @TableName sc_trading_pool_account_log
 */
@TableName(value = "sc_trading_pool_account_log")
@Data
public class TradingPoolAccountLog extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 5488364183466962589L;
    /**
     * dao_id
     */
    @TableField(value = "dao_id")
    private Long daoId;

    /**
     * 交易池id
     */
    @TableField(value = "trading_pool_config_id")
    private Long tradingPoolConfigId;

    /**
     * 操作时间
     */
    @TableField(value = "operation_time")
    private Date operationTime;

    /**
     * 数量
     */
    @TableField(value = "quantity")
    private BigDecimal quantity;

    /**
     * 变化前
     */
    @TableField(value = "before_change")
    private BigDecimal beforeChange;

    /**
     * 变化后
     */
    @TableField(value = "after_change")
    private BigDecimal afterChange;

    /**
     * 大类
     */
    @TableField(value = "category")
    private TradingPoolAccountCategoryEnum category;

    /**
     * 增减标识（0 减，1 增）
     */
    @TableField(value = "is_add")
    private Boolean isAdd;

    /**
     * 来源
     */
    @TableField(value = "source")
    private TradingPoolAccountTypeEnum source;

    /**
     * 受益方
     */
    @TableField(value = "beneficiary")
    private TradingPoolAccountTypeEnum beneficiary;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

}